import React from "react";
import { useEffect, useState } from "react";
import IdeaItem from "./IdeaItem";
import { itemInfoList } from "@/apis";

export default function Main() {
  const [idea, setIdea] = useState([]);
  useEffect(() => {
    (async () => {
      let data = itemInfoList;

      setIdea(data);
    })();
  }, []);

  return (
    <>
      <IdeaItem idea={idea} />
    </>
  );
}
